const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  devServer: {
    port: 8088,     //修改启动端口
    proxy: {
      '/juheNews': {
        target: 'http://v.juhe.cn/toutiao/index',    //需要跨域的url
        ws: true,                                    //代理webSocket
        changeOrigin: true,                          //允许跨域
        pathRewrite: {
          '^/juheNews': ''                         //重写路径
        }
      }
    }
  },

  //打包基本目录
  publicPath: './',
  //输出目录
  outputDir: 'dist',
  //静态资源目录
  assetsDir: 'assets',

  transpileDependencies: true
})
